home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Development
/
Source
/
PlainText
/
PTRoot.c
< prev
next >
Wrap
Text File
|
1994-01-25
|
2KB
|
74 lines
/*---------------------------- PTroot.h ----------------------------
This is the header for the root file. It is only #included by the
root. The PTglobs.h file is generated from it.
The contents of this file are:
1. Global definitions (these cannot be duplicated.)
------------------------------------------------------------------------*/
#include "PlainText.h"
/* 1. Globals for PlainText.c; rescue stuff */
/* 2. Globals are declared here. */
/* 2a. variables */
MenuHandle DeskMenu;
MenuHandle FileMenu;
MenuHandle EditMenu;
MenuHandle FindMenu;
MenuHandle MarkMenu;
MenuHandle WindowMenu;
MenuHandle ConvertMenu;
Str255 gFindBuffer = "\p";
Str255 gReplaceBuffer = "\p";
Str255 gCommandLine = "";
Handle PTScratch;
short gPlainTextRefNum;
short gSearchMethod = 0;
Boolean gPlainTextIsRunning = true;
Boolean gSearchBackwards = false;
Boolean gCaseSensitive = false;
Boolean gWrapSearch = false;
Boolean gUseWorksheet = true;
DocumentRecord Documents[MAXWINDS];
DocumentPeek CurrentScrollDocument=0;
DocumentPeek gPlainTextWSDoc=0;
DocumentPeek gClipboardDoc=0;
WindowPtr gTextWindowPosition=-1;
DialogRecord DlogStor;
DialogRecord AuxDlogStor;
CTabHandle MyCMHandle=0;
PaletteHandle DefaultPalette;
Rect DragBoundsRect;
short NumWindows=0;
short NumFileTypes = 1;
SFTypeList MyFileTypes = {'TEXT',
0 ,0, 0 };
Boolean gHasColorQD;
Boolean gMacPlusKBD;
Boolean gInBackground;
Boolean gDAonTop;
short gLastScrapCount;
/* OSType gClipType; */
FSSpec DefaultSpecs;
FSSpec HomeSpecs;
/* to pass an event record into ScrollAction */
EventRecord *PassEvent;
unsigned long gSleepTime=0;